package com.acegear.horizon.domain.events;

/**
 * Created by wangsike on 2016/12/19.
 */
public class ClubCreateEvent extends BaseEvent {

  private Long clubId;

  private Long userId;

  private String name;
  private String address;
  private String phone;
  private Boolean owner;
  private String imgUrl;
  private String coverUrl;

  private String memo;


  public Long getClubId() {
    return clubId;
  }

  public void setClubId(Long clubId) {
    this.clubId = clubId;
  }

  public ClubCreateEvent(Long clubId, Long userId, String name, String address, String phone,
                         Boolean owner, String imgUrl, String coverUrl, String memo) {
    this.clubId = clubId;
    this.userId = userId;
    this.name = name;
    this.address = address;
    this.phone = phone;
    this.owner = owner;
    this.imgUrl = imgUrl;
    this.coverUrl = coverUrl;
    this.memo = memo;
    genEventId();

  }


  public ClubCreateEvent() {
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Boolean getOwner() {
    return owner;
  }

  public void setOwner(Boolean owner) {
    this.owner = owner;
  }

  public String getImgUrl() {
    return imgUrl;
  }

  public void setImgUrl(String imgUrl) {
    this.imgUrl = imgUrl;
  }

  public String getCoverUrl() {
    return coverUrl;
  }

  public void setCoverUrl(String coverUrl) {
    this.coverUrl = coverUrl;
  }

  public String getMemo() {
    return memo;
  }

  public void setMemo(String memo) {
    this.memo = memo;
  }

  @Override
  public String routingKey() {
    return "horizon.domain.club.new";
  }
}
